/*
 * User_jrs_Stub.java
 *
 * Created on November 28, 2006, 10:33 AM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.asaga.tools;

/**
 *
 * @author jeremys
 */
public class User_jrs_Stub {
    
    private String emailaddress;
    private String password;
    
    /** Creates a new instance of User_jrs_Stub */
    public User_jrs_Stub() {
        emailaddress="sanderj@uga.edu";
        password="password";
    }
    public String getEmailAddress(){
        return emailaddress;
    }
    public String getPassword(){
        return password;
    }
    public boolean isValidUser(String s){
        if(s.equals(emailaddress)){
            return true;
        }else{
            return false;
        }
    }    
    public boolean validateAccount(String s, String p){
        if(s==null){
            return false;
        }
        
        if(s.equals(emailaddress)){
            if(p.equals(password)){
                return true;
            } 
        }else{
            return false;
        } 
        return false;
    }
    
}
